import request from '@/utils/request'

// 查询床位信息列表
export function listBeds(query) {
  return request({
    url: '/business/beds/list',
    method: 'get',
    params: query
  })
}

// 查询床位信息详细
export function getBeds(query) {
  return request({
    url: '/business/beds/getBedInfo',
    method: 'get',
    params:query
  })
}

// 新增床位信息
export function addBeds(data) {
  return request({
    url: '/business/beds',
    method: 'post',
    data: data
  })
}

// 修改床位信息
export function updateBeds(data) {
  return request({
    url: '/business/beds',
    method: 'put',
    data: data
  })
}

// 删除床位信息
export function delBeds(id) {
  return request({
    url: '/business/beds/' + id,
    method: 'delete'
  })
}
